package org.jash.ting13

import kotlinx.coroutines.runBlocking
import org.jash.ting13.net.APIService
import org.jash.utils.net.retrofit
import org.jash.utils.net.service
import org.junit.Test

import org.junit.Assert.*

/**
 * Example local unit test, which will execute on the development machine (host).
 *
 * See [testing documentation](http://d.android.com/tools/testing).
 */
class ExampleUnitTest {
    @Test
    fun addition_isCorrect() {
        assertEquals(4, 2 + 2)
        val service:APIService = service()
        runBlocking<Unit> {
            val play = service.getPlay("/play/27208_1_151266.html")
            println(play)
            val url = service.getUrl(play.sc, play.sp, play.nid, play.cid, play.sort)
            println(url)

        }
    }
}